const Router = require('koa-router')
const { leavemsg,addLeavemsg,getCunt,deletelist } = require('../controller/leavemsg.controller')
const router = new Router({prefix:'/leavemsg'})
const { auth } = require("../middleware/admin.middleware")
router.post('/list',leavemsg)
router.post('/add',addLeavemsg)
router.post('/all',auth,getCunt)
router.post('/delete',auth,deletelist)
module.exports = router